package com.water.controller;

import com.water.result.Result;
import com.water.service.PriceService;
import com.water.vo.PriceVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: city_water
 * @description:
 * @author: lydms
 * @create: 2024-05-18 16:38
 **/

@RestController
@RequestMapping("/user/price")
@Api(tags = "水费价格")
@Slf4j
public class PriceController {

    @Autowired
    private PriceService priceService;

    /**
     * 查询水费价格
     * @return
     */
    @GetMapping("/getInfo")
    @ApiOperation("查询水费价格")
    public Result<PriceVo> getInfo(){
    PriceVo priceVo = priceService.getInfo();
        return Result.success(priceVo);
    }
}
